<?php

$api = app('Dingo\Api\Routing\Router');

$api->version('V1',[
    'namespace'=>'App\Http\Controllers\Api\V1\Frontend\Index'
],function ($api){
    $api->group([
        'prefix' => 'frontend',
        'middleware' => [
            'jwt.token'
        ]
    ],function ($api){
        $api->group([
            'prefix' => 'index'

        ],function ($api){
            //首页
            $api->get('index','IndexController@index')
                ->name('frontend.index.index.get');

            //搜索页
            $api->get('search','IndexController@search')
                ->name('frontend.index.search.get');

            //流程服务单列表
            $api->get('server/list','IndexController@serverList')
                ->name('frontend.index.server.list.get');
        });
    });
});
